﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class
{
    class ShopNPC : NPC
    {
        private string item;
        private string name;
        public string Item
        {
            get { return this.item; }
            set { this.item = value; }
        }
       
        public override void Speak()
        {
            Console.WriteLine("{0},我这里有{1}商品，你要吗？",base.Name,this.item);
        }
        public ShopNPC (string name,NPCType type,string item) : base(name, type)
        {
            this.item = item;
        }
    }
}
